import request from "@/utils/request";
export function userLogin(data) {
    return request({
        url:'/login',
        method:'post',
        data:data
    })
}

export function updateUserInfo(data) {
    return request({
        url:'/users/info',
        method:'put',
        data:data
    })
}

export function sendCode(param) {
    return request({
        url:'/users/code',
        method:'get',
        params:param
    })
}

export function saveUserEmail(data) {
    return request({
        url:'/users/email',
        method:'post',
        data:data
    })
}

export function register(data) {
    return request({
        url:'/register',
        method:'post',
        data:data
    })
}

export function forget(data) {
    return request({
        url:'/users/password',
        method:'put',
        data:data
    })
}
